package com.magicborrow.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.magicborrow.R;

/**
 * Created by Administrator on 2016/5/11.
 */
public class WeixinRegistersActivity extends BaseActivity implements View.OnClickListener{

private LinearLayout ll_frame;
private TextView tv_confirm;
private ImageView iv_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_weixin_registers);
        initView();
        initListener();
    }

    private void initView(){
        //如果验证码错误需要修改边框颜色就修改这个LinearLayout的背景颜色
        ll_frame = (LinearLayout)findViewById(R.id.ll_frame);
        tv_confirm =(TextView)findViewById(R.id.tv_confirm);
        iv_back = (ImageView)findViewById(R.id.iv_back);
    }

    private void initListener(){
        tv_confirm.setOnClickListener(this);
        iv_back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v){
        switch (v.getId()){
            case R.id.iv_back:
                finish();
                break;
        }
    }
}
